﻿using System.Windows;
using System.Windows.Media;

namespace Game.Surface
{
    public class SurfaceFieldDecorator : DependencyObject
    {
        readonly AbstractField _AbstractField;

        public SurfaceFieldDecorator(AbstractField field)
        {
            field.Decorators.Add(this);
            _AbstractField = field;
        }

        public AbstractField AbstractField
        {
            get { return _AbstractField; }
        }

        public void Update()
        {
            _AbstractField.Update();
        }

        public virtual Brush Decorate(Brush brush)
        {
            return new SolidColorBrush(Colors.Purple);
        }

    }
}
